/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package paquete;

import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *
 * @author JuanJo
 */
public class shockwave extends HttpServlet {

    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {

        String shockwave="<div align='center'><OBJECT classid='clsid:233C1507-6A77-46A4-9443-F871F945D258' codebase='http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=11,5,0,595' ID=load WIDTH=800 HEIGHT=600  VIEWASTEXT><param name=src value='shockwave.dcr'><PARAM NAME=swStretchStyle VALUE=fill><param name=swRemote value='swSaveEnabled='true' swVolume='true' swRestart='true' swPausePlay='true' swFastForward='true' swContextMenu='true' '><param name=PlayerVersion value=11><PARAM NAME=bgColor VALUE=#000000><EMBED SRC='shockwave.dcr' bgColor=#000000  WIDTH=725 HEIGHT=544 swRemote='swSaveEnabled='true' swVolume='true' swRestart='true' swPausePlay='true' swFastForward='true' swContextMenu='true' ' swStretchStyle=fill TYPE='application/x-director' PlayerVersion=11 PLUGINSPAGE='http://www.macromedia.com/shockwave/download/'></EMBED></OBJECT></div>";

        PrintWriter out = response.getWriter();

        out.println("<html>");
        out.println("<head>");
        out.println("<title>Servlet con Shockwave</title>");
        out.println("</head>");
        out.println("<body>");
        out.println("<h1>Servlet Shockwave at " + request.getContextPath () + "</h1>");
        out.println(shockwave);
        out.println("</body>");
        out.println("</html>");


        //out.println("JuanJo =)");
    }
}